package json;

import java.util.Date;

import android.os.Parcel;
import android.os.Parcelable;

//*********************************************************************************************
public class Json_Picture implements Parcelable {

	private long mediaid;
	private String filepath;

	private String medianame;

	private long cateid;

	private long siteid;

	private String filetype;

	private String tag;
	private String summary;

	private int displayorder;

	private int state;

	private Date createtime;

	private String createip;

	private long uaid;

	private String uaname;

	private Date updatetime;

	private String updateip;

	private String catename;

	public long getId() {
		return mediaid;
	}

	public void setId(long id) {
		this.mediaid = id;
	}

	public String getPath() {
		return filepath;
	}

	public void setPath(String filepath) {
		this.filepath = filepath;
	}

	public String getFileType() {
		return this.filetype;
	}

	public void setFileType(String filetype) {
		this.filetype = filetype;
	}

	public String getMediaName() {
		return this.medianame;
	}

	public void setMediaName(String medianame) {
		this.medianame = medianame;
	}

	public String getSummary() {
		return this.summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getCatename() {
		return this.catename;
	}

	public void setCatename(String catename) {
		this.catename = catename;
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		dest.writeLong(mediaid);
		dest.writeString(medianame);
		dest.writeString(filepath);
		dest.writeString(catename);
		dest.writeString(filetype);
		dest.writeString(summary);
	}

	public static final Parcelable.Creator<Json_Picture> CREATOR = new Parcelable.Creator<Json_Picture>() {
		// 重写Creator

		@SuppressWarnings("unchecked")
		@Override
		public Json_Picture createFromParcel(Parcel source) {
			Json_Picture p = new Json_Picture();

			p.setSummary(source.readString());
			p.setFileType(source.readString());
			p.setCatename(source.readString());
			p.setPath(source.readString());
			p.setMediaName(source.readString());
			p.setId(source.readLong());

			return p;
		}

		@Override
		public Json_Picture[] newArray(int size) {
			// TODO Auto-generated method stub
			return null;
		}
	};
}